package com.gui.hospital.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gui.hospital.model.HospitalDepartment;

import java.util.List;

/**
 * @author 言叶
 * Date：2025/9/4
 */

public interface HospitalDepartmentService extends IService<HospitalDepartment> {
    /*
     * 根据医院id查询部门
     * @param hospitalId
     * @return
     */
    List<HospitalDepartment> findByHospitalId(Integer hospitalId);
    /*
     * 根据部门id查询部门
     * @param pid
     * @return
     */
    List<HospitalDepartment> findByPid(Integer pid);
}

